﻿<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="content-type" content="text/html; charset=utf-8" />
<title>{$title}</title>
<meta name="keywords" content="Kémia éve" />
<meta name="description" content="Kémia éve" />
<link rel="shortcut icon" type="image/x-icon" href="view/images/chemistry_2.jpg" />
<link href={Tools::link_to_css('config.css')} rel="stylesheet" type="text/css" />
<link href={Tools::link_to_css('styles.css')} rel="stylesheet" type="text/css" />
<link href="core/datepicker/datepicker.css" rel="stylesheet" type="text/css" />
</head>
<body>
<script type="text/javascript" src="./core/tinymce/jscripts/tiny_mce/tiny_mce.js"></script>

<script type="text/javascript">
	tinyMCE.init({
		theme : "advanced",
		mode : "textareas",
		theme_advanced_buttons1 : "fontselect,fontsizeselect,separator,bold,italic,underline,separator,forecolor,backcolor,separator,justifyleft,justifycenter,justifyright, justifyfull,separator,outdent,indent,blockquote,separator,bullist,numlist",
		theme_advanced_buttons2 : "cut,copy,paste,pasteword,separator,table,separator,sub,sup,separator,charmap,separator,link,unlink,separator,undo,redo",
		theme_advanced_buttons3 : "",
		 theme_advanced_toolbar_location : "top",
		theme_advanced_toolbar_align : "left",
		plugins : "table,paste"
	});
</script>


<table class="ds_box" cellpadding="0" cellspacing="0" id="ds_conclass" style="display: none;">
<tr><td id="ds_calclass"></td></tr>
</table>

<script type="text/javascript" src="core/ckeditor/ckeditor.js"></script>

<script type="text/javascript" src="core/datepicker/datepicker.js"></script>
</head>
<body>
<div id="mainbg">
<div id="main">

<!-- header begins -->
<!--<div id="logo"><h1>Kémia éve</h1></div>-->
<div id="header">
</div>
	{if $is_teacher eq '1'}<div id="buttons_teacher">{/if}
	{if $is_teacher eq '0'}<div id="buttons_user">{/if}
	{if $is_teacher eq NULL}<div id="buttons">{/if}

		<ul>
			<li class="first"><a href="./"  title="">Főoldal</a></li>
			<li><a href="?q=news/showall" title="">Hírarchivum</a></li>
			<li><a href="?q=user/showall" title="">Versenyzők</a></li>
			{if $is_teacher neq NULL}
			<li><a href="?q=tasksheet/showall" title="">Feladatlapok</a></li>
			{/if}
			<li><a href="?q=user/scoreall" title="">Pontok</a></li>
			
			{if $is_teacher eq 1}
			<li><a href="?q=tasksheet/newtasksheetstep1" title="">Feladatlap Feltöltése</a></li>
			<li><a href="?q=user/manageusers" title="">Felhasználók Jogai</a></li>
			{/if}
		</ul>
</div>
<!-- header ends -->

<!-- content begins -->
<div id="content_bg">
	<div id="content">
		<div id="right">
			{if empty($user_id)}
				{include file="user/login.tpl"}
			{else}
				{include file="user/logout.tpl"}
			{/if}
			<div id="loginerror">
			{$loginerror}
			</div>
			<br />
			<center><iframe src="http://www.facebook.com/plugins/likebox.php?href=http://www.facebook.com/pages/_test_/109652172449720&amp;width=220&amp;colorscheme=dark&amp;show_faces=true&amp;stream=true&amp;header=true&amp;height=427" scrolling="no" frameborder="0" style="border:none; overflow:hidden; width:220px; height:427px;" allowTransparency="true"></iframe></center>
		</div>
		<div id="left">
			{if count($errors) != 0 || count($notifications)!=0}
					<center>
						<div id="notifications">
							<center>
								<ul>
									{foreach from=$notifications item=foo}
										{if $foo!=''}<li>{$foo}</li>{/if}
									{/foreach}
									{foreach from=$errors item=foo}
										{if $foo!=''}<li>{$foo}</li>{/if}
									{/foreach}
								</ul>
							</center>
						</div>
					</center>
				<div class="placeholder"></div>
			{/if}
			<div id="text">
				{include file="$content.tpl"}
				<div id="placeholder"
				
				</div>
				<div class="hrd">
				</div><br />
			</div>
		</div>
    </div>
</div>
<!-- content ends -->
<!-- footer begins -->
<div id="footer">
  <p>Copyright  2011. Designed by <a href="http://www.metamorphozis.com/" title="Free Web Templates">Free Web Templates</a></p>
		<p><a href="http://simonyi.bme.hu/hu">Simonyi Károly Szakkollégium:</a> <a href="http://kszk.sch.bme.hu">KSZK</a> - <a href="http://kszk.sch.bme.hu/webteam">Webteam</a> | <a href="http://validator.w3.org/check/referer" title="This page validates as XHTML 1.0 Transitional"><abbr title="eXtensible HyperText Markup Language">XHTML</abbr></a> | <a href="http://jigsaw.w3.org/css-validator/check/referer" title="This page validates as CSS"><abbr title="Cascading Style Sheets">CSS</abbr></a></p></div>
<!-- footer ends -->
</div>
</div>
</body>
</html>